import { createApp } from 'vue'
import App from './App.vue'
import { setupPlugins } from './plugins'
import '@/styles/global.scss'
import router, { setupRouter } from './router'
import {MdPreview} from "md-editor-v3";
import "md-editor-v3/lib/preview.css";

async function bootstarp(){
    const app = createApp(App)
    //初始化插件
    setupPlugins(app)
    //初始化路由
    setupRouter(app)
    //配置markdown
    app.component("MdPreview", MdPreview)

    await router.isReady()
    app.mount('#app')
}
bootstarp()
